import * as ActionTypes from './ActionsTypes.js';

let _id = 0;
export const add = (text) => {
    console.log(1)
    return {
        type: ActionTypes.TODO_ADD,
        text: text,
        id:_id++,
        data: {}
    }
}
// export const del ={text,id}=>{}
export const del = (text,id) => {
    return {
        type: ActionTypes.TODO_DELETE,
        text: text,
        id:id
    }
}
